/**
 * jims
 */
package com.jims.master.modules.med.service;

import com.jims.master.common.persistence.Page;
import com.jims.master.common.service.CrudService;
import com.jims.master.modules.med.dao.MedicalCardConsumeDetailDao;
import com.jims.master.modules.med.entity.MedicalCardConsumeDetail;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 消费明细Service
 * @author 晨陈晓阳
 * @version 2017-05-22
 */
@Service
@Transactional(readOnly = true)
public class MedicalCardConsumeDetailService extends CrudService<MedicalCardConsumeDetailDao, MedicalCardConsumeDetail> {
    @Autowired
    private MedicalCardConsumeDetailDao medicalCardConsumeDetailDao;


	public MedicalCardConsumeDetail get(String id) {
		return super.get(id);
	}
	
	public List<MedicalCardConsumeDetail> findList(MedicalCardConsumeDetail medicalCardConsumeDetail) {
		return super.findList(medicalCardConsumeDetail);
	}
	
	public Page<MedicalCardConsumeDetail> findPage(Page<MedicalCardConsumeDetail> page, MedicalCardConsumeDetail medicalCardConsumeDetail) {
		return super.findPage(page, medicalCardConsumeDetail);
	}
	
	@Transactional(readOnly = false)
	public int save(MedicalCardConsumeDetail medicalCardConsumeDetail) {
		return super.save(medicalCardConsumeDetail);
	}
	
	@Transactional(readOnly = false)
	public int delete(MedicalCardConsumeDetail medicalCardConsumeDetail) {
		return super.delete(medicalCardConsumeDetail);
	}

    /**
     *
     * @param masterId
     * @return
     */
    public List<MedicalCardConsumeDetail> getByMasterId(String masterId) {
        return medicalCardConsumeDetailDao.getByMasterId(masterId);
    }
}